﻿using System.IO;
using System.Text.RegularExpressions;

namespace LeanUI.ImageBundleTests
{
    public static class StringExtenstions
    {
        public static string GetFullpath(this string p)
        {
            return Path.IsPathRooted(p)
                       ? p
                       : Path.Combine( @"c:\base\", p );
        }

        private static Regex _regex = new Regex(@"\s");

        public static string RemoveWhitespaces(this string s) {
            return _regex.Replace(s, "");
        }
    }
}